Skip to content

Fix time.Ticker leak in conditional access polling#48538

Open
sharon-fdm wants to merge 2 commits into
mainfrom
fix-42901-ticker-leak
Open

Fix time.Ticker leak in conditional access polling#48538
sharon-fdm wants to merge 2 commits into
mainfrom
fix-42901-ticker-leak

Conversation

@sharon-fdm

@sharon-fdm sharon-fdm commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Related issue: Closes #42901

Checklist for submitter

  • Changes file added for user-visible changes in changes/, orbit/changes/ or ee/fleetd-chrome/changes.
    See Changes files for more information.

  • Input data is properly validated, SELECT * is avoided, SQL injection is prevented (using placeholders for values in statements), JS inline code is prevented especially for url redirects, and untrusted data interpolated into shell scripts/commands is validated against shell metacharacters.

  • Timeouts are implemented and retries are limited to avoid infinite loops

Summary

  • Replaced time.Tick with time.NewTicker + defer ticker.Stop() in the conditional access polling loop in server/service/osquery.go
  • This ensures the ticker is properly cleaned up when the function returns, preventing a resource leak
  • Added an injectable ticker factory (newConditionalAccessTicker) to enable deterministic testing of cleanup behavior

Reproduction

The leak was reproduced locally by writing a unit test (TestSetHostConditionalAccess_TickerCleanup) that instruments the ticker factory to track creation and Stop() calls.

With the old time.Tick code (reverted locally to verify):
The test detected 0 tickers created through the factory (because time.Tick bypasses it entirely), proving the fix is absent and Stop() is never called:

=== RUN   TestSetHostConditionalAccess_TickerCleanup
    osquery_conditional_access_test.go:133: tickers created: 0, stopped: 0
    osquery_conditional_access_test.go:136:
                Error Trace:    osquery_conditional_access_test.go:136
                Error:          Not equal:
                                expected: 10
                                actual  : 0
                Test:           TestSetHostConditionalAccess_TickerCleanup
                Messages:       expected 10 tickers to be created
--- FAIL: TestSetHostConditionalAccess_TickerCleanup (0.03s)
FAIL

With the fix applied:
All 10 tickers are created and all 10 are properly stopped:

=== RUN   TestSetHostConditionalAccess_TickerCleanup
    osquery_conditional_access_test.go:133: tickers created: 10, stopped: 10
--- PASS: TestSetHostConditionalAccess_TickerCleanup (0.03s)
PASS

Testing

  • Added/updated automated tests
  • TestSetHostConditionalAccess_TickerCleanup -- unit test that verifies every ticker created in the polling loop is properly stopped after the function returns. Calls setHostConditionalAccess 10 times with "darwin" platform (which triggers the polling path) and asserts that all 10 tickers were created and stopped.
  • Ran go vet ./server/service/... -- passed with no issues
  • Ran conditional access unit tests (go test -run "ConditionalAccess" ./server/service/ -count=1) -- all passed
  • The integration tests that exercise this polling loop (TestConditionalAccess* in integration_enterprise_test.go) require MYSQL_TEST=1 REDIS_TEST=1 and will be validated in CI

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Fixed a resource leak in conditional access polling by ensuring the polling ticker is always stopped after use.
    • Improved reliability of macOS compliance message handling during repeated polling.
  • Tests

    • Added coverage to verify ticker cleanup across repeated conditional access checks.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.01%. Comparing base (95631bf) to head (6e3f99c).
⚠️ Report is 23 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #48538      +/-   ##
==========================================
+ Coverage   67.90%   68.01%   +0.10%     
==========================================
  Files        3678     3678              
  Lines      233673   233763      +90     
  Branches    12452    12452              
==========================================
+ Hits       158686   158990     +304     
+ Misses      60724    60472     -252     
- Partials    14263    14301      +38     
Flag Coverage Δ
backend 69.66% <100.00%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…42901)

Adds a test that instruments the ticker factory to verify every ticker
created during macOS conditional access polling is properly stopped,
preventing resource leaks. The test detects the old time.Tick bug by
confirming the injectable factory is used and Stop() is called for
each ticker.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sharon-fdm sharon-fdm marked this pull request as ready for review July 1, 2026 19:30
@sharon-fdm sharon-fdm requested a review from a team as a code owner July 1, 2026 19:30
Copilot AI review requested due to automatic review settings July 1, 2026 19:30

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.

Tip: disable this comment in your organization's Code Review settings.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 7e2affaa-cae9-48d9-835b-8e00eaa3481f

📥 Commits

Reviewing files that changed from the base of the PR and between 95631bf and 6e3f99c.

📒 Files selected for processing (3)
  • changes/42901-fix-ticker-leak
  • server/service/osquery.go
  • server/service/osquery_conditional_access_test.go

Walkthrough

This change fixes a resource leak in Microsoft Conditional Access polling for macOS hosts. A package-level newConditionalAccessTicker helper wrapping time.NewTicker replaces the previous time.Tick usage in setHostConditionalAccess, with a deferred Stop() call ensuring cleanup on all exit paths. A new test file verifies that tickers created during repeated polling calls are properly stopped. A changelog fragment documents the fix.

Changes

Area Changes
Ticker leak fix Added newConditionalAccessTicker helper; replaced time.Tick with a stoppable ticker and defer tickStop() in the macOS polling loop of setHostConditionalAccess
Tests Added osquery_conditional_access_test.go with a mock proxy and TestSetHostConditionalAccess_TickerCleanup verifying created tickers are stopped
Changelog Added changes/42901-fix-ticker-leak entry

Sequence Diagram(s)

sequenceDiagram
  participant setHostConditionalAccess
  participant newConditionalAccessTicker
  participant tickCh

  setHostConditionalAccess->>newConditionalAccessTicker: create ticker
  newConditionalAccessTicker-->>setHostConditionalAccess: tickCh, tickStop
  setHostConditionalAccess->>setHostConditionalAccess: defer tickStop()
  loop poll until completion or timeout
    tickCh->>setHostConditionalAccess: tick
    setHostConditionalAccess->>setHostConditionalAccess: check message status
  end
  setHostConditionalAccess->>tickStop: Stop() on return
Loading

Related issues: #42901 (time.Tick resource leak in MS conditional access polling)

Suggested labels: bug, go, server

Suggested reviewers: fleetdm maintainers familiar with server/service/osquery.go

Poem:
A ticker once ticked, then leaked away,
Goroutines piling up, day after day.
Now stopped with a defer, tidy and neat,
Darwin's polling loop, clean and complete.
🐰 A rabbit's small fix, a leak laid to rest.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately and concisely describes the main fix: replacing a leaking ticker in conditional access polling.
Description check ✅ Passed The description includes the required related issue, summary, testing, and checklist items, with enough detail for review.
Linked Issues check ✅ Passed The changes match #42901 by replacing time.Tick with time.NewTicker and deferring Stop, plus adding a cleanup test.
Out of Scope Changes check ✅ Passed The ticker factory and test are directly tied to the leak fix, and no unrelated code changes are evident.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-42901-ticker-leak

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

  • Copilot's review of this pull request may be incomplete because some of the changed files are excluded by your Copilot content exclusion settings. See Excluding content from Copilot for details.

Pull request overview

Fixes a goroutine/resource leak in the Microsoft Conditional Access polling loop by replacing time.Tick (unstoppable) with a stoppable ticker, and adds a unit test to verify ticker cleanup behavior.

Changes:

  • Replace time.Tick with a time.NewTicker-backed, stoppable ticker in the macOS conditional access polling loop.
  • Add an injectable ticker factory (newConditionalAccessTicker) to enable deterministic testing of ticker cleanup.
  • Add a unit test (TestSetHostConditionalAccess_TickerCleanup) that verifies each polling invocation stops its ticker.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
server/service/osquery.go Replaces time.Tick usage with a stoppable ticker via an injectable factory to prevent leaks in the conditional access polling loop.
server/service/osquery_conditional_access_test.go Adds a focused unit test to assert tickers created for polling are properly stopped.
changes/42901-fix-ticker-leak User-visible changes entry (excluded from review by content exclusion policy).
Files excluded by content exclusion policy (1)
  • changes/42901-fix-ticker-leak

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +86 to +101
// Use a very short poll interval so the test runs fast.
origWait := conditionalAccessSetWaitTime
conditionalAccessSetWaitTime = 1 * time.Millisecond
t.Cleanup(func() {
conditionalAccessSetWaitTime = origWait
})

// Instrument the ticker factory to track Stop() calls.
var tickersCreated atomic.Int32
var tickersStopped atomic.Int32

origTickerFactory := newConditionalAccessTicker
newConditionalAccessTicker = func(d time.Duration) (<-chan time.Time, func()) {
tickersCreated.Add(1)
ticker := time.NewTicker(d)
return ticker.C, func() {
@qodo-free-for-open-source-projects

Copy link
Copy Markdown

CI Feedback 🧐

A test triggered by this PR failed. Here is an AI-generated analysis of the failure:

Action: test-go (fleetctl, mysql:8.0.44) / test

Failed stage: Run Go Tests [❌]

Failed test name: TestGitOpsFullGlobal

Failure summary:

The action failed because Go integration tests for fleetctl failed in TestGitOpsFullGlobal:
-
TestGitOpsFullGlobal/useDeprecatedKeys=false failed at cmd/fleetctl/fleetctl/gitops_test.go:2244
(via assertion helper cmd/fleetctl/fleetctl/testing_utils_test.go:20).
-
TestGitOpsFullGlobal/useDeprecatedKeys=true failed at the same locations.
- Both failures were
caused by an unexpected API validation error when applying custom settings: POST
/api/latest/fleet/mdm/profiles/batch returned 422 Validation Failed with the message cannot set
custom settings: Windows MDM isn't turned on.
- The make .run-go-tests target returned a non-zero
exit code due to these test failures (make[1]: *** [Makefile:302: .run-go-tests] Error 1), causing
the workflow to fail.

Relevant error logs:
1:  Runner name: 'ubuntu-8core-1000965614'
2:  Runner group name: 'default larger runners'
...

1706:  �[36;1mattempt=1�[0m
1707:  �[36;1m�[0m
1708:  �[36;1mwhile [ $attempt -le $max_attempts ]; do�[0m
1709:  �[36;1m  echo "Attempt $attempt of $max_attempts"�[0m
1710:  �[36;1m�[0m
1711:  �[36;1m  # Try to connect to MySQL�[0m
1712:  �[36;1m  if wait_for_mysql "mysql_test"; then�[0m
1713:  �[36;1m    # If MySQL is ready, try to connect to MySQL replica�[0m
1714:  �[36;1m    if wait_for_mysql "mysql_replica_test"; then�[0m
1715:  �[36;1m      # Both are ready, we're done�[0m
1716:  �[36;1m      echo "All MySQL connections successful"�[0m
1717:  �[36;1m      exit 0�[0m
1718:  �[36;1m    fi�[0m
1719:  �[36;1m  fi�[0m
1720:  �[36;1m�[0m
1721:  �[36;1m  # If we get here, at least one connection failed�[0m
1722:  �[36;1m  echo "Failed to connect to MySQL on attempt $attempt"�[0m
1723:  �[36;1m�[0m
1724:  �[36;1m  if [ $attempt -lt $max_attempts ]; then�[0m
1725:  �[36;1m    echo "Restarting containers and trying again..."�[0m
1726:  �[36;1m    restart_containers�[0m
1727:  �[36;1m  else�[0m
1728:  �[36;1m    echo "Maximum attempts reached. Failing the job."�[0m
1729:  �[36;1m    exit 1�[0m
...

1880:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
1881:  GOTOOLCHAIN: local
1882:  FLEET_PREVIEW_TAG: dev
1883:  ##[endgroup]
1884:  make .run-go-tests PKG_TO_TEST="./cmd/fleetctl/..."
1885:  make[1]: Entering directory '/home/runner/work/fleet/fleet'
1886:  Running Go tests with gotestsum:
1887:  gotestsum --format=testdox --jsonfile=/tmp/test-output.json -- -tags full,fts5,netgo -run=  -v -race=false -timeout=20m  -parallel 8 -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/fleetdm/fleet/v4/... ././cmd/fleetctl/... 
1888:  github.com/fleetdm/fleet/v4/cmd/fleetctl:
1889:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/goquerycmd:
1890:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/testing_utils:
1891:  github.com/fleetdm/fleet/v4/cmd/fleetctl/fleetctl/fleetctltest:
1892:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest:
1893:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/preview:
1894:  �[32m✓�[0m Integrations preview (45.85s)
1895:  �[32m✓�[0m Preview fails on invalid license key (0.00s)
1896:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/package:
...

2007:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days not a number (0.53s)
2008:  �[32m✓�[0m Apply specs deprecated keys app config windows updates.grace period days out of range (0.65s)
2009:  �[32m✓�[0m Apply specs deprecated keys config with FIM values for agent options (#869 9) (0.53s)
2010:  �[32m✓�[0m Apply specs deprecated keys config with blank required org name (0.51s)
2011:  �[32m✓�[0m Apply specs deprecated keys config with blank required server url (0.66s)
2012:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options command-line flags (0.70s)
2013:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type in dry-run (0.63s)
2014:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options data type with force (0.59s)
2015:  �[32m✓�[0m Apply specs deprecated keys config with invalid agent options in dry-run (0.49s)
2016:  �[32m✓�[0m Apply specs deprecated keys config with invalid key type (0.45s)
2017:  �[32m✓�[0m Apply specs deprecated keys config with invalid value for agent options command-line flags (0.42s)
2018:  �[32m✓�[0m Apply specs deprecated keys config with unknown key (0.48s)
2019:  �[32m✓�[0m Apply specs deprecated keys config with valid agent options command-line flags (0.50s)
2020:  �[32m✓�[0m Apply specs deprecated keys dry-run set with unsupported spec (0.54s)
2021:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, appconfig warning for legacy (0.70s)
2022:  �[32m✓�[0m Apply specs deprecated keys dry-run set with various specs, no errors (0.64s)
2023:  �[32m✓�[0m Apply specs deprecated keys empty config (0.54s)
...

2026:  �[32m✓�[0m Apply specs deprecated keys invalid agent options dry-run (0.54s)
2027:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type (0.66s)
2028:  �[32m✓�[0m Apply specs deprecated keys invalid agent options field type in overrides (0.46s)
2029:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for existing team (0.66s)
2030:  �[32m✓�[0m Apply specs deprecated keys invalid agent options for new team (0.42s)
2031:  �[32m✓�[0m Apply specs deprecated keys invalid agent options force (0.37s)
2032:  �[32m✓�[0m Apply specs deprecated keys invalid known key's value type for team cannot be forced (0.37s)
2033:  �[32m✓�[0m Apply specs deprecated keys invalid team agent options command-line flag (0.50s)
2034:  �[32m✓�[0m Apply specs deprecated keys invalid top-level key for team (0.46s)
2035:  �[32m✓�[0m Apply specs deprecated keys macos updates deadline set but minimum version empty (0.56s)
2036:  �[32m✓�[0m Apply specs deprecated keys macos updates minimum version set but deadline empty (0.51s)
2037:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with incomplete date (0.61s)
2038:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with invalid date (0.44s)
2039:  �[32m✓�[0m Apply specs deprecated keys macos updates.deadline with timestamp (0.48s)
2040:  �[32m✓�[0m Apply specs deprecated keys macos updates.minimum version with build version (0.50s)
2041:  �[32m✓�[0m Apply specs deprecated keys missing required failing policies destination url (0.46s)
2042:  �[32m✓�[0m Apply specs deprecated keys missing required host status days count (0.44s)
...

2050:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption true (0.61s)
2051:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption with invalid value type (0.53s)
2052:  �[32m✓�[0m Apply specs deprecated keys team config macos settings.enable disk encryption without a value (0.49s)
2053:  �[32m✓�[0m Apply specs deprecated keys unknown key for team can be forced (0.47s)
2054:  �[32m✓�[0m Apply specs deprecated keys valid team agent options command-line flag (0.45s)
2055:  �[32m✓�[0m Apply specs deprecated keys windows updates unset valid (0.37s)
2056:  �[32m✓�[0m Apply specs deprecated keys windows updates valid (0.43s)
2057:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days but grace period empty (0.51s)
2058:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days not a number (0.53s)
2059:  �[32m✓�[0m Apply specs deprecated keys windows updates.deadline days out of range (0.42s)
2060:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days but deadline empty (0.61s)
2061:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days not a number (0.46s)
2062:  �[32m✓�[0m Apply specs deprecated keys windows updates.grace period days out of range (0.58s)
2063:  �[32m✓�[0m Apply specs dry-run set with unsupported spec (0.53s)
2064:  �[32m✓�[0m Apply specs dry-run set with various specs, appconfig warning for legacy (0.45s)
2065:  �[32m✓�[0m Apply specs dry-run set with various specs, no errors (0.57s)
2066:  �[32m✓�[0m Apply specs empty config (0.48s)
...

2069:  �[32m✓�[0m Apply specs invalid agent options dry-run (0.47s)
2070:  �[32m✓�[0m Apply specs invalid agent options field type (0.50s)
2071:  �[32m✓�[0m Apply specs invalid agent options field type in overrides (0.49s)
2072:  �[32m✓�[0m Apply specs invalid agent options for existing team (0.53s)
2073:  �[32m✓�[0m Apply specs invalid agent options for new team (0.42s)
2074:  �[32m✓�[0m Apply specs invalid agent options force (0.68s)
2075:  �[32m✓�[0m Apply specs invalid known key's value type for team cannot be forced (0.52s)
2076:  �[32m✓�[0m Apply specs invalid team agent options command-line flag (0.50s)
2077:  �[32m✓�[0m Apply specs invalid top-level key for team (0.53s)
2078:  �[32m✓�[0m Apply specs macos updates deadline set but minimum version empty (0.46s)
2079:  �[32m✓�[0m Apply specs macos updates minimum version set but deadline empty (0.43s)
2080:  �[32m✓�[0m Apply specs macos updates.deadline with incomplete date (0.39s)
2081:  �[32m✓�[0m Apply specs macos updates.deadline with invalid date (0.50s)
2082:  �[32m✓�[0m Apply specs macos updates.deadline with timestamp (0.47s)
2083:  �[32m✓�[0m Apply specs macos updates.minimum version with build version (0.51s)
2084:  �[32m✓�[0m Apply specs missing required failing policies destination url (0.42s)
2085:  �[32m✓�[0m Apply specs missing required host status days count (0.43s)
...

2104:  �[32m✓�[0m Apply specs windows updates.grace period days not a number (0.47s)
2105:  �[32m✓�[0m Apply specs windows updates.grace period days out of range (0.39s)
2106:  �[32m✓�[0m Apply team specs (0.41s)
2107:  �[32m✓�[0m Apply user roles (0.48s)
2108:  �[32m✓�[0m Apply user roles deprecated (0.40s)
2109:  �[32m✓�[0m Apply windows updates (0.42s)
2110:  �[32m✓�[0m Apply windows updates field omitted (0.00s)
2111:  �[32m✓�[0m Apply windows updates with null values (0.00s)
2112:  �[32m✓�[0m Apply windows updates with values (0.00s)
2113:  �[32m✓�[0m Can apply intervals in nanoseconds (0.67s)
2114:  �[32m✓�[0m Can apply intervals using durations (0.36s)
2115:  �[32m✓�[0m Clean status code err (0.00s)
2116:  �[32m✓�[0m Clean status code err bare wrapped status code err (0.00s)
2117:  �[32m✓�[0m Clean status code err nil (0.00s)
2118:  �[32m✓�[0m Clean status code err outer-wrapped status code err (0.00s)
2119:  �[32m✓�[0m Clean status code err plain error untouched (0.00s)
2120:  �[32m✓�[0m Compute label changes (0.00s)
...

2176:  �[32m✓�[0m Filename functions (0.00s)
2177:  �[32m✓�[0m Filename functions outfile name builds a file name using the name provided + current time (0.00s)
2178:  �[32m✓�[0m Filename functions outfile name with ext builds a file name using the name and extension provided + current time (0.00s)
2179:  �[32m✓�[0m FleetctlUpgradePacks empty packs (0.38s)
2180:  �[32m✓�[0m FleetctlUpgradePacks no pack (0.44s)
2181:  �[32m✓�[0m FleetctlUpgradePacks non empty (0.37s)
2182:  �[32m✓�[0m FleetctlUpgradePacks not admin (0.47s)
2183:  �[32m✓�[0m Format XML (0.00s)
2184:  �[32m✓�[0m Format XML XML with attributes (0.00s)
2185:  �[32m✓�[0m Format XML basic XML (0.00s)
2186:  �[32m✓�[0m Format XML empty XML (0.00s)
2187:  �[32m✓�[0m Format XML invalid XML (0.00s)
2188:  �[32m✓�[0m Format XML nested XML (0.00s)
2189:  �[32m✓�[0m Generate MDM apple (1.00s)
2190:  �[32m✓�[0m Generate MDM apple BM (0.48s)
2191:  �[32m✓�[0m Generate MDM apple CSR API call fails (0.57s)
2192:  �[32m✓�[0m Generate MDM apple successful run (0.43s)
2193:  �[32m✓�[0m Generate MDMVPP tokens (0.00s)
2194:  �[32m✓�[0m Generate MDMVPP tokens get VPP tokens error (0.00s)
2195:  �[32m✓�[0m Generate MDMVPP tokens multiple tokens with different teams (0.00s)
...

2213:  �[32m✓�[0m Generate org settings masked google workspace api key (0.00s)
2214:  �[32m✓�[0m Generate policies (0.00s)
2215:  �[32m✓�[0m Generate policies patch policy orphaned from fleet maintained app (0.00s)
2216:  �[32m✓�[0m Generate queries (0.00s)
2217:  �[32m✓�[0m Generate software (0.00s)
2218:  �[32m✓�[0m Generate software auto update schedule (0.00s)
2219:  �[32m✓�[0m Generate software script packages (0.00s)
2220:  �[32m✓�[0m Generate team settings (0.00s)
2221:  �[32m✓�[0m Generate team settings insecure (0.00s)
2222:  �[32m✓�[0m Generated org settings no SSO (0.00s)
2223:  �[32m✓�[0m Generated org settings okta conditional access not included (0.00s)
2224:  �[32m✓�[0m Get MDM command results (0.47s)
2225:  �[32m✓�[0m Get MDM command results command flag required (0.00s)
2226:  �[32m✓�[0m Get MDM command results command not found (0.01s)
2227:  �[32m✓�[0m Get MDM command results command results empty (0.01s)
2228:  �[32m✓�[0m Get MDM command results command results error (0.01s)
2229:  �[32m✓�[0m Get MDM command results darwin command results (0.01s)
2230:  �[32m✓�[0m Get MDM command results host specific results (0.00s)
2231:  �[32m✓�[0m Get MDM command results windows command results (0.00s)
2232:  �[32m✓�[0m Get MDM commands (0.53s)
2233:  �[32m✓�[0m Get apple BM (1.68s)
2234:  �[32m✓�[0m Get apple BM free license (0.35s)
2235:  �[32m✓�[0m Get apple BM premium license, multiple tokens (0.46s)
2236:  �[32m✓�[0m Get apple BM premium license, no token (0.46s)
2237:  �[32m✓�[0m Get apple BM premium license, single token (0.40s)
2238:  �[32m✓�[0m Get apple MDM (0.41s)
2239:  �[32m✓�[0m Get carve (0.31s)
2240:  �[32m✓�[0m Get carve with error (0.54s)
2241:  �[32m✓�[0m Get carves (0.45s)
...

2255:  �[32m✓�[0m Get hosts MDM get hosts - -mdm - -mdm-pending - (0.00s)
2256:  �[32m✓�[0m Get hosts MDM get hosts - -mdm-pending - -yaml - expected list hosts yaml.yml (0.00s)
2257:  �[32m✓�[0m Get hosts get hosts - -json - -remove-deprecated-keys (0.00s)
2258:  �[32m✓�[0m Get hosts get hosts - -json - expected list hosts json.json (0.00s)
2259:  �[32m✓�[0m Get hosts get hosts - -json test host - expected host detail response json.json (0.00s)
2260:  �[32m✓�[0m Get hosts get hosts - -yaml - expected list hosts yaml.yml (0.01s)
2261:  �[32m✓�[0m Get hosts get hosts - -yaml test host - expected host detail response yaml.yml (0.00s)
2262:  �[32m✓�[0m Get label (0.39s)
2263:  �[32m✓�[0m Get label usage include and exclude allowed (0.00s)
2264:  �[32m✓�[0m Get label usage include and exclude allowed macos (0.00s)
2265:  �[32m✓�[0m Get label usage include and exclude allowed macos# 01 (0.00s)
2266:  �[32m✓�[0m Get label usage include and exclude allowed macos# 02 (0.00s)
2267:  �[32m✓�[0m Get label usage include and exclude allowed windows (0.00s)
2268:  �[32m✓�[0m Get label usage include and exclude allowed windows# 01 (0.00s)
2269:  �[32m✓�[0m Get label usage include and exclude allowed windows# 02 (0.00s)
2270:  �[32m✓�[0m Get label usage include exclude overlap error (0.00s)
2271:  �[32m✓�[0m Get label usage include exclude overlap error macos (0.00s)
2272:  �[32m✓�[0m Get label usage include exclude overlap error macos# 01 (0.00s)
2273:  �[32m✓�[0m Get label usage include exclude overlap error macos# 02 (0.00s)
2274:  �[32m✓�[0m Get label usage include exclude overlap error windows (0.00s)
2275:  �[32m✓�[0m Get label usage include exclude overlap error windows# 01 (0.00s)
2276:  �[32m✓�[0m Get label usage include exclude overlap error windows# 02 (0.00s)
2277:  �[32m✓�[0m Get label usage multiple label keys error (0.00s)
2278:  �[32m✓�[0m Get label usage multiple label keys error macos (0.00s)
2279:  �[32m✓�[0m Get label usage multiple label keys error windows (0.00s)
2280:  �[32m✓�[0m Get label usage policy scopes (0.00s)
...

2296:  �[32m✓�[0m Get queries as observer team observer (0.01s)
2297:  �[32m✓�[0m Get query (0.50s)
2298:  �[32m✓�[0m Get query labels include all (0.51s)
2299:  �[32m✓�[0m Get reports labels include all (0.47s)
2300:  �[32m✓�[0m Get software titles (0.60s)
2301:  �[32m✓�[0m Get software versions (0.38s)
2302:  �[32m✓�[0m Get teams (0.95s)
2303:  �[32m✓�[0m Get teams YAML and apply (0.46s)
2304:  �[32m✓�[0m Get teams by name (0.56s)
2305:  �[32m✓�[0m Get teams expired license (0.57s)
2306:  �[32m✓�[0m Get teams not expired license (0.38s)
2307:  �[32m✓�[0m Get teams software from source of truth (0.43s)
2308:  �[32m✓�[0m Get user roles (0.45s)
2309:  �[32m✓�[0m Git ops ABM (6.76s)
2310:  �[32m✓�[0m Git ops ABM backwards compat (0.60s)
2311:  �[32m✓�[0m Git ops ABM both keys errors (0.52s)
2312:  �[32m✓�[0m Git ops ABM deprecated config with two tokens in the db fails (0.70s)
2313:  �[32m✓�[0m Git ops ABM new key all valid (0.63s)
2314:  �[32m✓�[0m Git ops ABM new key multiple elements (0.89s)
2315:  �[32m✓�[0m Git ops ABM no team is supported (0.52s)
2316:  �[32m✓�[0m Git ops ABM non existent org name fails (0.53s)
2317:  �[32m✓�[0m Git ops ABM not provided teams defaults to no team (0.68s)
2318:  �[32m✓�[0m Git ops ABM renamed new key all valid (0.92s)
2319:  �[32m✓�[0m Git ops ABM using an undefined team errors (0.77s)
2320:  �[32m✓�[0m Git ops EULA setting (4.39s)
...

2323:  �[32m✓�[0m Git ops EULA setting not a PDF file (0.57s)
2324:  �[32m✓�[0m Git ops EULA setting relative path to working dir to pdf file (no existing EULA uploaded) (0.38s)
2325:  �[32m✓�[0m Git ops EULA setting relative path to yaml file to pdf file (no existing EULA uploaded) (0.65s)
2326:  �[32m✓�[0m Git ops EULA setting uploading the same EULA again (0.51s)
2327:  �[32m✓�[0m Git ops EULA setting valid new pdf file (different EULA already uploaded) (0.61s)
2328:  �[32m✓�[0m Git ops EULA setting valid pdf file (no existing EULA uploaded) (0.55s)
2329:  �[32m✓�[0m Git ops MDM auth settings (0.71s)
2330:  �[32m✓�[0m Git ops SMTP settings (0.52s)
2331:  �[32m✓�[0m Git ops SSO server URL (0.60s)
2332:  �[32m✓�[0m Git ops SSO settings (0.49s)
2333:  �[32m✓�[0m Git ops android certificates add (0.59s)
2334:  �[32m✓�[0m Git ops android certificates change (0.70s)
2335:  �[32m✓�[0m Git ops android certificates delete all (0.55s)
2336:  �[32m✓�[0m Git ops android certificates delete one (0.60s)
2337:  �[32m✓�[0m Git ops app store app auto update (0.65s)
2338:  �[32m✓�[0m Git ops app store app auto update invalid auto-update window triggers error and does not call update software title auto update config (0.02s)
2339:  �[32m✓�[0m Git ops app store app auto update no auto update settings and no existing schedule does not call update software title auto update config (0.02s)
2340:  �[32m✓�[0m Git ops app store app auto update update software title auto update config is applied for i OS VPP apps (0.02s)
2341:  �[32m✓�[0m Git ops app store app auto update update software title auto update config is not called when no VPP apps provided (0.02s)
2342:  �[32m✓�[0m Git ops apple OS updates (0.38s)
2343:  �[32m✓�[0m Git ops apple OS updates ios updates (0.01s)
2344:  �[32m✓�[0m Git ops apple OS updates ios updates os updated when existing OS update declaration (0.01s)
2345:  �[32m✓�[0m Git ops apple OS updates ipados updates (0.01s)
2346:  �[32m✓�[0m Git ops apple OS updates ipados updates os updated when existing OS update declaration (0.01s)
2347:  �[32m✓�[0m Git ops apple OS updates macos updates (0.01s)
2348:  �[32m✓�[0m Git ops apple OS updates macos updates os updated when existing OS update declaration (0.01s)
2349:  �[32m✓�[0m Git ops basic global and no team (0.58s)
2350:  �[32m✓�[0m Git ops basic global and no team basic global and no-team.yml (0.06s)
2351:  �[32m✓�[0m Git ops basic global and no team both global and no-team.yml define controls -- should fail (0.01s)
2352:  �[32m✓�[0m Git ops basic global and no team controls only defined in no-team.yml (0.05s)
2353:  �[32m✓�[0m Git ops basic global and no team global DOES NOT define controls -- should fail (0.01s)
2354:  �[32m✓�[0m Git ops basic global and no team global and no-team.yml DO NOT define controls -- should fail (0.01s)
2355:  �[32m✓�[0m Git ops basic global and no team global defines software -- should fail (0.01s)
2356:  �[32m✓�[0m Git ops basic global and no team no-team provided without global -- should fail (0.01s)
2357:  �[32m✓�[0m Git ops basic global and no team no-team.yml defines policy with calendar events enabled -- should fail (0.01s)
2358:  �[32m✓�[0m Git ops basic global and no team unassigned provided without global -- should fail (0.01s)
2359:  �[32m✓�[0m Git ops basic global and team (0.64s)
...

2365:  �[32m✓�[0m Git ops custom settings global macos windows custom settings valid.yml (0.43s)
2366:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix 2 .yml (0.49s)
2367:  �[32m✓�[0m Git ops custom settings global windows custom settings invalid label mix.yml (0.78s)
2368:  �[32m✓�[0m Git ops custom settings global windows custom settings unknown label.yml (0.74s)
2369:  �[32m✓�[0m Git ops custom settings team macos custom settings valid deprecated.yml (0.49s)
2370:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix 2 .yml (0.70s)
2371:  �[32m✓�[0m Git ops custom settings team macos windows custom settings invalid labels mix.yml (0.54s)
2372:  �[32m✓�[0m Git ops custom settings team macos windows custom settings unknown label.yml (0.64s)
2373:  �[32m✓�[0m Git ops custom settings team macos windows custom settings valid.yml (0.57s)
2374:  �[32m✓�[0m Git ops dry run rejects invalid label platform (0.36s)
2375:  �[32m✓�[0m Git ops exception enforcement (0.49s)
2376:  �[32m✓�[0m Git ops exception enforcement free tier (0.43s)
2377:  �[32m✓�[0m Git ops exceptions preserve omitted keys (0.46s)
2378:  �[32m✓�[0m Git ops features (0.57s)
2379:  �[32m✓�[0m Git ops filename validation (0.00s)
2380:  �[32m✓�[0m Git ops fleet failing policies webhook policy IDs (0.64s)
2381:  �[32m✓�[0m Git ops fleet webhooks and tickets enabled (0.52s)
...

2538:  �[32m✓�[0m New basic file structure has expected files (0.00s)
2539:  �[32m✓�[0m New basic file structure replaces and escapes org name template var (0.00s)
2540:  �[32m✓�[0m New basic file structure strips .template. from output filenames (0.00s)
2541:  �[32m✓�[0m New dir flag (0.01s)
2542:  �[32m✓�[0m New existing dir with force (0.01s)
2543:  �[32m✓�[0m New existing dir without force (0.00s)
2544:  �[32m✓�[0m New org name YAML quoting (0.01s)
2545:  �[32m✓�[0m New org name validation (0.02s)
2546:  �[32m✓�[0m New org name validation at max length (0.01s)
2547:  �[32m✓�[0m New org name validation control characters stripped (0.01s)
2548:  �[32m✓�[0m New org name validation only control characters (0.00s)
2549:  �[32m✓�[0m New org name validation only whitespace (0.00s)
2550:  �[32m✓�[0m New org name validation too long (0.00s)
2551:  �[32m✓�[0m New output messages (0.01s)
2552:  �[32m✓�[0m New template stripping (0.01s)
2553:  �[32m✓�[0m Print auth error (0.49s)
2554:  �[32m✓�[0m Print auth error SSO disabled shows default login message (0.00s)
2555:  �[32m✓�[0m Print auth error SSO enabled shows SSO instructions (0.00s)
2556:  �[32m✓�[0m Render template (0.00s)
...

2576:  �[32m✓�[0m Run api command get scripts full path missing (0.00s)
2577:  �[32m✓�[0m Run api command get scripts team (0.00s)
2578:  �[32m✓�[0m Run api command get scripts team no cache (0.00s)
2579:  �[32m✓�[0m Run api command get typo (0.00s)
2580:  �[32m✓�[0m Run api command upload script (0.00s)
2581:  �[32m✓�[0m Run script command (0.61s)
2582:  �[32m✓�[0m Run script command disabled scripts globally (0.00s)
2583:  �[32m✓�[0m Run script command host not found (0.01s)
2584:  �[32m✓�[0m Run script command invalid file type (0.00s)
2585:  �[32m✓�[0m Run script command invalid hashbang (0.01s)
2586:  �[32m✓�[0m Run script command invalid utf 8 (0.01s)
2587:  �[32m✓�[0m Run script command missing one of script-path and script-nqme (0.00s)
2588:  �[32m✓�[0m Run script command output truncated (0.01s)
2589:  �[32m✓�[0m Run script command posix shell hashbang (0.01s)
2590:  �[32m✓�[0m Run script command script empty (0.01s)
2591:  �[32m✓�[0m Run script command script failed (0.01s)
2592:  �[32m✓�[0m Run script command script killed (0.01s)
...

2647:  �[32m✓�[0m Validate git ops group EUA global-only run degrades id p but the team's in-run file disables EU A: accepted (0.00s)
2648:  �[32m✓�[0m Validate git ops group EUA global-only run degrades id p while a stored team keeps EUA on: rejected (#4337 1) (0.00s)
2649:  �[32m✓�[0m Validate git ops group EUA no EUA enabled anywhere is accepted (0.00s)
2650:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file adds complete id P: accepted (0.00s)
2651:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file adds id p missing entity id: rejected (0.00s)
2652:  �[32m✓�[0m Validate git ops group EUA team enables EU A, global file omits id P, stored has id P: rejected (overwrite clears) (0.00s)
2653:  �[32m✓�[0m Validate git ops group EUA team enables EU A, stored has id P, no global file: accepted (0.00s)
2654:  �[32m✓�[0m Validate git ops group EUA team enables EU A, stored has no id P, no global file: rejected (0.00s)
2655:  github.com/fleetdm/fleet/v4/cmd/fleetctl/integrationtest/gitops:
2656:  �[32m✓�[0m Git ops VPP (5.10s)
2657:  �[32m✓�[0m Git ops VPP all fleets is supported (0.69s)
2658:  �[32m✓�[0m Git ops VPP all teams is supported (0.60s)
2659:  �[32m✓�[0m Git ops VPP new key all valid (0.66s)
2660:  �[32m✓�[0m Git ops VPP new key multiple elements (0.63s)
2661:  �[32m✓�[0m Git ops VPP no team is supported (0.64s)
2662:  �[32m✓�[0m Git ops VPP non existent location fails (0.64s)
2663:  �[32m✓�[0m Git ops VPP not provided teams defaults to no team (0.64s)
2664:  �[32m✓�[0m Git ops VPP using an undefined team errors (0.60s)
2665:  �[32m✓�[0m Git ops existing team VPP apps with missing team (0.64s)
...

2758:  �[32m✓�[0m Git ops team software installers team software installer with display name.yml (1.51s)
2759:  �[32m✓�[0m Integrations enterprise gitops (315.63s)
2760:  �[32m✓�[0m Integrations enterprise gitops test CA integrations (3.86s)
2761:  �[32m✓�[0m Integrations enterprise gitops test FMA labels include all (5.98s)
2762:  �[32m✓�[0m Integrations enterprise gitops test IPA software installers (9.47s)
2763:  �[32m✓�[0m Integrations enterprise gitops test JSON configuration profile escaping (1.29s)
2764:  �[32m✓�[0m Integrations enterprise gitops test add manual labels (1.50s)
2765:  �[32m✓�[0m Integrations enterprise gitops test configuration profile escaping (1.34s)
2766:  �[32m✓�[0m Integrations enterprise gitops test delete CA with certificate templates (5.87s)
2767:  �[32m✓�[0m Integrations enterprise gitops test delete mac OS setup (5.03s)
2768:  �[32m✓�[0m Integrations enterprise gitops test deleting no team YAML (2.65s)
2769:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience (123.70s)
2770:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience all VPP with setup experience (1.25s)
2771:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team VPP (1.14s)
2772:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience no team installers (60.51s)
2773:  �[32m✓�[0m Integrations enterprise gitops test disallow software setup experience packages fail (60.62s)
2774:  �[32m✓�[0m Integrations enterprise gitops test dry run mac OS setup script with manual agent install conflict (0.42s)
...

2804:  �[32m✓�[0m Integrations enterprise gitops test omitted top level keys global (2.46s)
2805:  �[32m✓�[0m Integrations enterprise gitops test remove custom settings from default YAML (2.54s)
2806:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps (3.77s)
2807:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps all teams (2.37s)
2808:  �[32m✓�[0m Integrations enterprise gitops test special case teams VPP apps no team (1.23s)
2809:  �[32m✓�[0m Integrations enterprise gitops test unset configuration profile labels (4.88s)
2810:  �[32m✓�[0m Integrations enterprise gitops test unset software installer labels (12.32s)
2811:  �[32m✓�[0m Integrations enterprise starter library (4.89s)
2812:  �[32m✓�[0m Integrations enterprise starter library test apply starter library premium (3.51s)
2813:  �[32m✓�[0m Integrations gitops (2.32s)
2814:  �[32m✓�[0m Integrations gitops test fleet gitops (0.49s)
2815:  �[32m✓�[0m Integrations gitops test fleet gitops DDM fleet vars requires premium (0.12s)
2816:  �[32m✓�[0m Integrations gitops test fleet gitops with fleet secrets (0.23s)
2817:  �[32m✓�[0m Integrations starter library (1.55s)
2818:  �[32m✓�[0m Integrations starter library test apply starter library free (0.18s)
2819:  === �[31mFailed�[0m
2820:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)
2821:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=115.864µs uuid=4be8c28c-20fe-4da3-9a61-4910171514a5 err="not found"
2822:  [-] would've deleted report Query to delete
2823:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=111.918µs uuid=b9dfc9a0-7117-4982-8a95-e8ae6026ba4b err="not found"
2824:  testing_utils_test.go:20: 
2825:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/testing_utils_test.go:20
2826:  /home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/gitops_test.go:2244
2827:  Error:      	Received unexpected error:
2828:  applying custom settings: POST /api/latest/fleet/mdm/profiles/batch received status 422 Validation Failed: cannot set custom settings: Windows MDM isn't turned on. For more information about setting up MDM, please visit https://fleetdm.com/learn-more-about/windows-mdm (API time: 1ms)
2829:  Test:       	TestGitOpsFullGlobal/useDeprecatedKeys=false
2830:  --- FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)
2831:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2832:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=109.866µs uuid=d7d47afa-048c-4325-ba77-b0948455badc err="not found"
2833:  [-] would've deleted report Query to delete
2834:  time=level=INFO msg="request error" path=/api/latest/fleet/setup_experience/eula/metadata took=117.167µs uuid=cbb4aeb3-092c-48be-b258-ab7a0c33d654 err="not found"
2835:  testing_utils_test.go:20: 
2836:  Error Trace:	/home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/testing_utils_test.go:20
2837:  /home/runner/work/fleet/fleet/cmd/fleetctl/fleetctl/gitops_test.go:2244
2838:  Error:      	Received unexpected error:
2839:  applying custom settings: POST /api/latest/fleet/mdm/profiles/batch received status 422 Validation Failed: cannot set custom settings: Windows MDM isn't turned on. For more information about setting up MDM, please visit https://fleetdm.com/learn-more-about/windows-mdm (API time: 1ms)
2840:  Test:       	TestGitOpsFullGlobal/useDeprecatedKeys=true
2841:  --- FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2842:  === �[31mFAIL�[0m: cmd/fleetctl/fleetctl TestGitOpsFullGlobal (0.51s)
2843:  DONE 921 tests, 3 failures in 649.662s
2844:  make[1]: *** [Makefile:302: .run-go-tests] Error 1
2845:  make[1]: Leaving directory '/home/runner/work/fleet/fleet'
2846:  make: *** [Makefile:417: test-go] Error 2
2847:  ##[error]Process completed with exit code 2.
2848:  Node 20 is being deprecated. This workflow is running with Node 24 by default. If you need to temporarily use Node 20, you can set the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
2849:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2850:  with:
2851:  name: fleetctl-mysql8.0.44-coverage
2852:  path: ./coverage.txt
2853:  if-no-files-found: error
2854:  compression-level: 6
...

2857:  RACE_ENABLED: false
2858:  GO_TEST_TIMEOUT: 20m
2859:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2860:  RUN_TESTS_ARG: 
2861:  CI_TEST_PKG: fleetctl
2862:  NEED_DOCKER: 1
2863:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2864:  GOTOOLCHAIN: local
2865:  ##[endgroup]
2866:  (node:49012) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2867:  (Use `node --trace-deprecation ...` to show where the warning was created)
2868:  With the provided path, there will be 1 file uploaded
2869:  Artifact name is valid!
2870:  Root directory input is valid!
2871:  Beginning upload of artifact content to blob storage
2872:  (node:49012) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2873:  Uploaded bytes 2308691
2874:  Finished uploading artifact content to blob storage!
2875:  SHA256 hash of uploaded artifact zip is 522a5c2347d766824368dfffde5514076cdb2ce6e795742ab3fc4d0abdcb9011
2876:  Finalizing artifact upload
2877:  Artifact fleetctl-mysql8.0.44-coverage.zip successfully finalized. Artifact ID 8020727423
2878:  Artifact fleetctl-mysql8.0.44-coverage has been successfully uploaded! Final size is 2308691 bytes. Artifact ID is 8020727423
2879:  Artifact download URL: https://github.com/fleetdm/fleet/actions/runs/28542301171/artifacts/8020727423
2880:  ##[group]Run c1grep() { grep "$@" || test $? = 1; }
2881:  �[36;1mc1grep() { grep "$@" || test $? = 1; }�[0m
2882:  �[36;1mc1grep -oP 'FAIL: .*$' /tmp/gotest.log > /tmp/summary.txt�[0m
2883:  �[36;1mc1grep 'test timed out after' /tmp/gotest.log >> /tmp/summary.txt�[0m
2884:  �[36;1mc1grep 'fatal error:' /tmp/gotest.log >> /tmp/summary.txt�[0m
2885:  �[36;1mc1grep -A 10 'panic: runtime error: ' /tmp/gotest.log >> /tmp/summary.txt�[0m
2886:  �[36;1mc1grep ' FAIL\t' /tmp/gotest.log >> /tmp/summary.txt�[0m
2887:  �[36;1mGO_FAIL_SUMMARY=$(head -n 5 /tmp/summary.txt | sed ':a;N;$!ba;s/\n/\\n/g')�[0m
2888:  �[36;1mecho "GO_FAIL_SUMMARY=$GO_FAIL_SUMMARY"�[0m
2889:  �[36;1mif [[ -z "$GO_FAIL_SUMMARY" ]]; then�[0m
2890:  �[36;1m  GO_FAIL_SUMMARY="unknown, please check the build URL"�[0m
2891:  �[36;1mfi�[0m
2892:  �[36;1mGO_FAIL_SUMMARY=$GO_FAIL_SUMMARY envsubst < .github/workflows/config/slack_payload_template.json > ./payload.json�[0m
2893:  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
2894:  env:
2895:  RACE_ENABLED: false
2896:  GO_TEST_TIMEOUT: 20m
2897:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2898:  RUN_TESTS_ARG: 
2899:  CI_TEST_PKG: fleetctl
2900:  NEED_DOCKER: 1
2901:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2902:  GOTOOLCHAIN: local
2903:  ##[endgroup]
2904:  GO_FAIL_SUMMARY=FAIL: TestGitOpsFullGlobal/useDeprecatedKeys=false (0.04s)\nFAIL: TestGitOpsFullGlobal/useDeprecatedKeys=true (0.04s)
2905:  Node 20 is being deprecated. This workflow is running with Node 24 by default. If you need to temporarily use Node 20, you can set the ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true environment variable. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
2906:  ##[group]Run actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a
2907:  with:
2908:  name: fleetctl-mysql8.0.44-test-log
2909:  path: /tmp/gotest.log
2910:  if-no-files-found: error
2911:  compression-level: 6
...

2914:  RACE_ENABLED: false
2915:  GO_TEST_TIMEOUT: 20m
2916:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2917:  RUN_TESTS_ARG: 
2918:  CI_TEST_PKG: fleetctl
2919:  NEED_DOCKER: 1
2920:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2921:  GOTOOLCHAIN: local
2922:  ##[endgroup]
2923:  (node:49034) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2924:  (Use `node --trace-deprecation ...` to show where the warning was created)
2925:  With the provided path, there will be 1 file uploaded
2926:  Artifact name is valid!
2927:  Root directory input is valid!
2928:  Beginning upload of artifact content to blob storage
2929:  (node:49034) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2930:  Uploaded bytes 11015
...

2946:  RACE_ENABLED: false
2947:  GO_TEST_TIMEOUT: 20m
2948:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2949:  RUN_TESTS_ARG: 
2950:  CI_TEST_PKG: fleetctl
2951:  NEED_DOCKER: 1
2952:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2953:  GOTOOLCHAIN: local
2954:  ##[endgroup]
2955:  (node:49046) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2956:  (Use `node --trace-deprecation ...` to show where the warning was created)
2957:  With the provided path, there will be 1 file uploaded
2958:  Artifact name is valid!
2959:  Root directory input is valid!
2960:  Beginning upload of artifact content to blob storage
2961:  (node:49046) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2962:  Uploaded bytes 205
...

2978:  RACE_ENABLED: false
2979:  GO_TEST_TIMEOUT: 20m
2980:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
2981:  RUN_TESTS_ARG: 
2982:  CI_TEST_PKG: fleetctl
2983:  NEED_DOCKER: 1
2984:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
2985:  GOTOOLCHAIN: local
2986:  ##[endgroup]
2987:  (node:49058) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
2988:  (Use `node --trace-deprecation ...` to show where the warning was created)
2989:  With the provided path, there will be 1 file uploaded
2990:  Artifact name is valid!
2991:  Root directory input is valid!
2992:  Beginning upload of artifact content to blob storage
2993:  (node:49058) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
2994:  Uploaded bytes 104698
...

3027:  RACE_ENABLED: false
3028:  GO_TEST_TIMEOUT: 20m
3029:  DOCKER_COMMAND: docker compose -f docker-compose.yml -f docker-compose-redis-cluster.yml up -d mysql_test mysql_replica_test redis redis-cluster-1 redis-cluster-2 redis-cluster-3 redis-cluster-4 redis-cluster-5 redis-cluster-6 redis-cluster-setup s3 saml_idp mailhog mailpit smtp4dev_test
3030:  RUN_TESTS_ARG: 
3031:  CI_TEST_PKG: fleetctl
3032:  NEED_DOCKER: 1
3033:  ARTIFACT_PREFIX: fleetctl-mysql8.0.44
3034:  GOTOOLCHAIN: local
3035:  ##[endgroup]
3036:  (node:49071) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
3037:  (Use `node --trace-deprecation ...` to show where the warning was created)
3038:  With the provided path, there will be 1 file uploaded
3039:  Artifact name is valid!
3040:  Root directory input is valid!
3041:  Beginning upload of artifact content to blob storage
3042:  (node:49071) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
3043:  Uploaded bytes 133

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

time.Tick resource leak in MS conditional access polling

2 participants